import request from '@/utils/request'

//登录
export function login(data){
    return request({
        url:'/account/login',
        method:'post',
        data
    })
}
//注册
export function register(data){
    return request({
        url:'/account/register',
        method:'post'
    })
}
//退出
export function logout(){
    return request({
        url:'/account/logout',
        method:'post'
    })
}
//用户信息
export function info(){
    return request({
        url:'/account/info',
        method:'get'
    })
}